package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.method.MethodComponent;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IMethodComponentService {
	public boolean addMethodComponent(MethodComponent component,long userId);
	public boolean addMethodComponent(MethodComponent component);

	public MethodComponent getMethodComponentById(long id);

	public MethodComponent getMethodComponentByUri(String uri);
	
	public List<MethodComponent> getMethodComponentByName(String name);
	
	public List<MethodComponent> getAllMethodComponents();

	public boolean updateMethodComponent(MethodComponent component);

	public PageBean<MethodComponent> getPageBean(int pageNo) throws DBException;
	
	public  List<MethodComponent> getMethodComponentsByText(String text);
}
